<%-- 
    Document   : index
    Created on : Mar 26, 2012, 5:48:58 PM
    Author     : Swang
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="ws.*" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        Test Web Service SOAP:
        <%
            CardValidatorService cardValidatorService = new CardValidatorService();
            CreditCard creditCard = new CreditCard();
            creditCard.setNumber("12341231");
            creditCard.setExpiryDate("10/10");
            creditCard.setType("VISA");
            creditCard.setControlNumber(1234);
            CardValidator cardValidator = cardValidatorService.getCardValidatorPort();
            out.println(cardValidator.validate(creditCard));
        %>
    </body>
</html>
